package listeners;

import javax.naming.InitialContext;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.db4o.Db4o;

import facades.SessionFacade;

import auser.Circolo;
import auser.Db4oCareTaker;
import auser.Socio;
import auser.Utente;

public class SessionListen implements HttpSessionListener {
 
  public SessionListen() {}

  public void sessionCreated(HttpSessionEvent se) {
	  SessionFacade sf = new SessionFacade(se.getSession());
	 
	  ServletContext servCtx = se.getSession().getServletContext();
	  servCtx.log("Session started id=" + se.getSession().getId());
	  
  }
  
 
  public void sessionDestroyed(HttpSessionEvent se) {
	  ServletContext servCtx = se.getSession().getServletContext();
	  servCtx.log("Session started id=" + se.getSession().getId());
	  
  }
}
